package com.bacon.gmall.activity.client;

import com.bacon.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2021-01-13 16:45
 * @description:
 */
@FeignClient(name = "service-activity")
public interface ActivityFeignClient {

    @GetMapping("/api/activity/seckill/getSeckillGoodsList")
    List<SeckillGoods> getSeckillGoodsList();

    @GetMapping("/api/activity/seckill/getSeckillGoods/{skuId}")
    SeckillGoods getSeckillGoods(@PathVariable Long skuId);

}
